package com.easwift.qsp.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 属性操作工具类
 * 
 * @author Administrator
 *
 */
public class PropertyUtils {

	private static Properties properties = new Properties();

	static {
		InputStream in = PropertyUtils.class.getResourceAsStream("/easwift.properties");
		try {
			properties.load(in);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	private PropertyUtils() {
	}

	/**
	 * 获取属性值
	 * 
	 * @param key
	 * @return
	 */
	public static String getProperty(String key) {
		return properties.getProperty(key);
	}

}